how to program the target by python